#include "SystemClass.h"
#include "_MyDebug_.h"
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance, PSTR pScmdline, int iCmdshow)
{
	SystemClass* System;
	bool result;

	//create system obj
	System = new SystemClass();
	if(!System)
	{
		return 0;
	}

	// initialize and run system obj
	result = System->Initialize();
	if(result)
	{
		System->Run();
	}

	// shutdown and release the system obj
	System->Shutdown();
	SAFE_DEL(System);
	return 0;
}